package
{
	/**
	 * Shared static variables
	 */ 
	public final class Common
	{
		// xml file name
		public static const XML_FILE:String = "testXml.xml";
		
		// general coordinates
		public static const LEFT_X = 44;
		public static const TOP_Y = 10;
		public static const COL_SPACE = 30;
		public static const ROW_SPACE = 20;
		
		// title
		public static const TITLE_WIDTH = 600;
		public static const TITLE_HEIGHT = 50;
		public static const TITLE_X = LEFT_X;
		public static const TITLE_Y = TOP_Y;
		
		// pictures
		private static const PICTURES_WIDTH = 600;
		private static const PICTURES_HEIGHT = 300; // height of the pictures by themselves
		
		// height of picture wrapper including the "view all pictures" text
		private static const PICTURES_FULL_HEIGHT = 330; 
		public static const PICTURES_X = LEFT_X;
		public static const PICTURES_Y = TOP_Y + TITLE_HEIGHT + ROW_SPACE;
		public static const THUMB_WIDTH = 180;
		public static const THUMB_HEIGHT = 135;
		public static const PIC_BUTTON_WIDTH = 65;
		public static const PIC_BUTTON_HEIGHT = 65;
		public static const PIC_BUTTON_BUFFER:int = 15;
		public static const PICTURE = "thumbnail";
		public static const PICTURE_WRAPPER = "pictureWrapper";
		public static const PIC_BACK_BUTTON = "picBackButton";
		public static const PIC_FORWARD_BUTTON = "picForwardButton";
		public static const VIEW_ALL_PICS = "viewAllPics";
		public static const URL_PHOTO_START:String = "http://hardon.stanford.edu/";
		
		// videos
		public static const VIDEO_WIDTH = 320;
		public static const VIDEO_HEIGHT = 240;
		public static const VIDEO_X = LEFT_X;
		public static const VIDEO_Y = PICTURES_Y + PICTURES_FULL_HEIGHT + ROW_SPACE;
		
		// blog
		public static const BLOG_WIDTH = PICTURES_WIDTH - VIDEO_WIDTH - COL_SPACE;
		public static const BLOG_HEIGHT = VIDEO_HEIGHT;
		public static const BLOG_X = VIDEO_X + VIDEO_WIDTH + COL_SPACE;
		public static const BLOG_Y = VIDEO_Y;
		
		// date
		public static const DATE_WIDTH = 306;
		public static const DATE_HEIGHT = TITLE_HEIGHT;
		public static const DATE_X = TITLE_X + TITLE_WIDTH + COL_SPACE;
		public static const DATE_Y = TOP_Y;
		
		// calendar button
		public static const CALENDAR_WIDTH = DATE_HEIGHT;
		public static const CALENDAR_HEIGHT = CALENDAR_WIDTH;
		public static const CALENDAR_X = DATE_X + DATE_WIDTH - CALENDAR_WIDTH;
		public static const CALENDAR_Y = DATE_Y;
		
		// weather
		public static const WEATHER_WIDTH = DATE_WIDTH;
		public static const WEATHER_HEIGHT = 200;
		public static const WEATHER_X = DATE_X;
		public static const WEATHER_Y = DATE_Y + DATE_HEIGHT + ROW_SPACE;
		public static const SUNNY:String = "http://hardon.stanford.edu/weather_imgs/sunny.png";
		public static const CLOUDY:String = "http://hardon.stanford.edu/weather_imgs/cloudy.png";
		public static const HAIL:String = "http://hardon.stanford.edu/weather_imgs/hail.png";
		public static const RAINY:String = "http://hardon.stanford.edu/weather_imgs/rainy.png";
		public static const SNOW:String = "http://hardon.stanford.edu/weather_imgs/snow.png";
		public static const STORM:String = "http://hardon.stanford.edu/weather_imgs/thunderstorm.png";
		
		// location
		public static const LOCATION_WIDTH = WEATHER_WIDTH;
		public static const LOCATION_HEIGHT = 370;
		public static const LOCATION_X = WEATHER_X;
		public static const LOCATION_Y = WEATHER_Y + WEATHER_HEIGHT + ROW_SPACE;
		
		// main navigation buttons
		public static const BUTTON_WIDTH = 300;
		public static const BUTTON_HEIGHT = 50;
		public static const BUTTON_OUTLINE = 0x000077;
		public static const BUTTON_FILL = 0x0077DD;
		public static const LBUTTON_X = LEFT_X;
		public static const LBUTTON_Y = VIDEO_Y + VIDEO_HEIGHT + ROW_SPACE;
		public static const RBUTTON_X = 1024 - LEFT_X - BUTTON_WIDTH;
		public static const RBUTTON_Y = LBUTTON_Y;
		
		
		public static function getPicturesHeight() {
			return PICTURES_HEIGHT;
		}
		
		public static function getPicturesFullHeight() {
			return PICTURES_FULL_HEIGHT;
		}
		
		public static function getPicturesWidth() {
			return PICTURES_WIDTH;
		}
	}
}